package com.znyj.servlet.secondaryController;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.text.ParseException;

/**
 * Created by gaoliwei02 on 17/6/24.
 */
@Controller
public class TestController {
    private static final Logger logger = LoggerFactory.getLogger(DemoController.class);

    @RequestMapping(value = "/", method = RequestMethod.GET)
    protected String index(HttpServletRequest request) throws ParseException, IOException {
        return "/index";
    }

    @RequestMapping(value = "/index", method = RequestMethod.GET)
    protected String index_index(HttpServletRequest request) throws ParseException, IOException {
        return "/index";
    }
}
